package com.xdcplus.web.mapper.bd;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.bd.BdMaterialType;
import com.xdcplus.web.common.pojo.query.bd.BdMaterialTypeQuery;
import com.xdcplus.web.common.pojo.vo.bd.BdMaterialTypeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 物料类型表(BdMaterialType)表数据库访问层
 *
 * @author Fish.Fei
 * @since 2023-02-01 09:04:00
 */
public interface BdMaterialTypeMapper extends IBaseMapper<BdMaterialType> {

    /**
     * 查询物料类型表(BdMaterialType)
     *
     * @param bdMaterialTypeQuery 物料类型表(BdMaterialType)查询
     * @return {@link List<BdMaterialType>}
     */
    List<BdMaterialType> queryBdMaterialType(BdMaterialTypeQuery bdMaterialTypeQuery);

    List<BdMaterialType> queryBdMaterialTypeVOByParentId(Long parentId);

    List<Long> queryIdByItemType(@Param("itemType") String itemType);

    List<BdMaterialTypeVO> getAll();


}
